As we're destroying the scrollbars on destruction, we should remove any
reference of it, not to cause multiple-calls to disposal to unreference them
again.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/190
priv->fade_effect = NULL;
}
- if (priv->vscroll)
- clutter_actor_destroy (priv->vscroll);
-
- if (priv->hscroll)
- clutter_actor_destroy (priv->hscroll);
+ g_clear_pointer (&priv->vscroll, clutter_actor_destroy);
+ g_clear_pointer (&priv->hscroll, clutter_actor_destroy);
/* For most reliable freeing of memory, an object with signals
* like StAdjustment should be explicitly disposed. Since we own